export enum GameMapItemType {
    NONE,           
    WALL,
    EXIT,

    DOOR_H,
    DOOR_V,
    DOOR_OPEN,

    WEAPON_1 = 10,
    WEAPON_2 = 11,
    WEAPON_3 = 12,
    WEAPON_4 = 13,

    KEY_1 = 15,
    KEY_2 = 16,

    ITEM_1 = 20,    //红药水
    ITEM_2 = 21,    //蓝药水
    ITEM_3 = 22,    //勋章
    ITEM_4 = 23,    //蓝宝石
    ITEM_5 = 24,    //红宝石

    MONSTER_1 = 31, //绿史莱姆
    MONSTER_2 = 32, //红史莱姆
    MONSTER_3 = 33, //蝙蝠
    MONSTER_4 = 34, //骷髅1
    MONSTER_5 = 35, //骷髅2
    MONSTER_6 = 36, //蓝祭师
    MONSTER_7 = 37, //红祭师
    MONSTER_8 = 38, //蓝巨人
    MONSTER_9 = 39, //红巨人

    BOSS_1 = 100,
    BOSS_RANGE = 101,
};

export let Map1Data = [
    [2, 0, 31,32,31,0, 0, 0, 0, 0, 0 ],
    [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0 ],
    [1, 0, 0, 1, 0, 1, 0, 0, 0, 1, 0 ],
    [1, 0, 0, 1, 0, 1, 0, 0, 0, 1, 0 ],
    [20,0, 0, 4, 0, 1, 24,15,0, 1, 0 ],
    [1, 34,0, 1, 0, 1, 23,20,0, 1, 0 ],
    [1, 0, 0, 1, 0, 1, 0, 0, 0, 1, 0 ],
    [1, 0, 0, 1, 0, 1, 0, 0, 0, 1, 0 ],
    [1, 0, 0, 1, 0, 1, 0, 0, 0, 1, 0 ],
    [1, 3, 1, 1, 0, 1, 1, 1, 3, 1, 0 ],
    [15,0, 0, 1, 0, 4, 33,36,33,1, 0 ],
    [0, 35,0, 1, 0, 1, 1, 1, 1, 1, 0 ],
    [1, 3, 1, 1, 0, 0, 0, 0, 0, 0, 0 ],
    [0, 0, 0, 1, 1, 3, 1, 1, 1, 3, 1 ],
    [20,0, 15,1, 15,31, 0, 1, 0, 33,0 ],
    [20,22,15,1, 0, 0, 0, 1, 31,21,31],
];
export let Map1InitPos = cc.v2(15, 5);

export let Map2Data = [
    [2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,], 
    [1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0,], 
    [0, 0, 0, 4, 0, 1, 15,1, 0, 0, 0,], 
    [0, 15,0, 1, 0, 1, 0, 1, 0, 0, 0,], 
    [15,16,15,1, 0, 1, 0, 1, 0, 0, 0,], 
    [0, 0, 0, 1, 0, 1, 0, 1, 0, 0, 0,], 
    [1, 3, 1, 1, 0, 1, 0, 1, 0, 0, 0,], 
    [0, 0, 0, 1, 0, 1, 0, 1, 0, 100,0,], 
    [0, 0, 0, 1, 0, 1, 0, 1, 101,101,101,], 
    [11,39,13,1, 0, 1, 0, 1, 0, 0, 0,], 
    [1, 0, 1, 1, 0, 38,0, 1, 0, 0, 0,], 
    [0, 0, 0, 1, 0, 1, 1, 1, 1, 1, 0,], 
    [0, 12,0, 1, 0, 0, 37,37,37,37,0,], 
    [0, 0, 0, 1, 1, 3, 1, 1, 1, 1, 1,], 
    [0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0,], 
    [0, 0, 0, 1, 10,0, 0, 0, 36,15,15], 
];
export let Map2InitPos = cc.v2(15, 5);

export let MonsterHp = [];
MonsterHp[GameMapItemType.MONSTER_1] = 1;   //绿史莱姆
MonsterHp[GameMapItemType.MONSTER_2] = 3;   //红史莱姆
MonsterHp[GameMapItemType.MONSTER_3] = 5;   //蝙蝠
MonsterHp[GameMapItemType.MONSTER_4] = 333;   //骷髅1
MonsterHp[GameMapItemType.MONSTER_5] = 333;   //骷髅2
MonsterHp[GameMapItemType.MONSTER_6] = 10;   //蓝祭师
MonsterHp[GameMapItemType.MONSTER_7] = 15;   //红祭师
MonsterHp[GameMapItemType.MONSTER_8] = 20;   //蓝巨人
MonsterHp[GameMapItemType.MONSTER_9] = 100;   //红巨人
MonsterHp[GameMapItemType.BOSS_1] = 999;   //boss

export let MonsterAttack = [];
MonsterAttack[GameMapItemType.MONSTER_1] = 1;   //绿史莱姆
MonsterAttack[GameMapItemType.MONSTER_2] = 3;   //红史莱姆
MonsterAttack[GameMapItemType.MONSTER_3] = 5;   //蝙蝠
MonsterAttack[GameMapItemType.MONSTER_4] = 333;   //骷髅1
MonsterAttack[GameMapItemType.MONSTER_5] = 333;   //骷髅2
MonsterAttack[GameMapItemType.MONSTER_6] = 10;   //蓝祭师
MonsterAttack[GameMapItemType.MONSTER_7] = 15;   //红祭师
MonsterAttack[GameMapItemType.MONSTER_8] = 20;   //蓝巨人
MonsterAttack[GameMapItemType.MONSTER_9] = 100;   //红巨人
MonsterAttack[GameMapItemType.BOSS_1] = 999;   //boss

export let WeaponAddAttack = [];
WeaponAddAttack[GameMapItemType.WEAPON_1] = 5;
WeaponAddAttack[GameMapItemType.WEAPON_2] = 40;
WeaponAddAttack[GameMapItemType.WEAPON_3] = 999;
WeaponAddAttack[GameMapItemType.WEAPON_4] = 40;

export let ItemAddHp = [];
ItemAddHp[GameMapItemType.ITEM_1] = 5;
ItemAddHp[GameMapItemType.ITEM_2] = 20;
